import __main__

def writeln(msg):
  if __main__.app.globalSettings().isDebugMode():
    print msg

def writelist(lst):
  if __main__.app.globalSettings().isDebugMode():
    for item in lst:
      print item
